<template>
  <div class="home">
    <div>count:{{count}}</div>
    <button @click="increase">增加</button>
    <button @click="decrease">减少</button>
  </div>
</template>

<script>
// @ is an alias to /src
import {mapGetters,mapMutations} from 'vuex'
export default {
  name: 'Home',
  computed: {
    ...mapGetters(['count'])
  },
  methods: {
    ...mapMutations(['decrease','increase'])
  },
}
</script>
